import Home from '@/views/Home'
import Login from '@/views/Login'
import Page from '@/views/Page'
import EditPage from '@/views/EditPage'
import Setting from '@/views/Setting'
import User from '@/views/User'
import SpaceList from '@/views/Space'
import Manage from '@/views/Manage'

const routes=[
	{
		path: '/',
		component: Home,
		children: [
			{
				path: 'page',
				component: Page
			},
			{
				path: 'edit',
				component: EditPage
			},
			{
				path: 'setting',
				component: Setting
			},
			{
				path: 'user',
				component: User
			},
			{
				path: 'space',
				component: SpaceList
			},
			{
				path: 'manage',
				component: Manage
			}
		]
	},
	{
		path: '/login',
		component: Login
	}
]
export default routes
